home *** CD-ROM | disk | FTP | other *** search
/ Space & Astronomy / Space and Astronomy (October 1993).iso / pc / viewers / amiga / gif2iff.zoo / convert next >
AmigaDOS Script File  |  1989-04-25  |  1KB  |  52 lines

  1. .key source/a,image/a,opt1,opt2,disk
  2.  
  3. if exists <source><image>
  4.   GIFtoTMP <source><image> <image>.tmp
  5.   if warn
  6.     skip UNLACEIT
  7.   endif
  8.   if not exists <image>.tmp
  9.     echo "GIFtoTMP <source><image> <image>.tmp   failed"
  10.     quit 20
  11.   endif
  12. else
  13.   if exists <source><image>.gif
  14.     GIFtoTMP <source><image>.gif <image>.tmp
  15.     if warn
  16.       skip UNLACEIT
  17.     endif
  18.     if not exists <image>.tmp
  19.       echo "GIFtoTMP <source><image>.gif <image>.tmp --- failed"
  20.       quit 20
  21.     endif
  22.   else
  23.     echo "Can't find <source><image> or <source><image>.gif"
  24.     quit 20
  25.   endif
  26. endif
  27.  
  28. TMPtoIFF <image>.tmp <image>.pic <opt1> <opt2>
  29. if exists <image>.pic
  30.   echo "Success"
  31.   quit 0
  32. else
  33.   echo "TMPtoIFF <image>.tmp <image>.pic <opt1> <opt2> --- failed"
  34. endif
  35. quit 20
  36.  
  37. LAB UNLACEIT
  38. Unlace <image>.tmp <image>.ltmp
  39. if exists <image>.ltmp
  40.   TMPtoIFF <image>.ltmp <image>.pic <opt1> <opt2>
  41.   if exists <image>.pic
  42.     echo "Success"
  43.     quit 0
  44.   else
  45.     echo "TMPtoIFF <image>.ltmp <image>.pic <opt1> <opt2> --- failed"
  46.     quit 20
  47.   endif
  48. else
  49.   echo "Unlace <image>.tmp <image>.ltmp --- failed"
  50. endif
  51. quit 20
  52.